home *** CD-ROM | disk | FTP | other *** search
- Hi John...
- You wrote about <Random Number Generation>
-
- JJM> num=rand()%1000; /*Try to modify rand()s output to be*/
- JJM> num/=100; /*between 0 and 1*/
-
- Why not just num = rand()%2
-
- ??
-
-
- ______ _____________________________ . . .
- (___ :|/ /_____ \_ _____ __ _
- | / _/ |: / __// ____________ . .
- | \ ~\_| _\ .\_ /__:|_
- | __ |\____/|________/_______/
- ! || |==========================
- : || | -+ Kasper B. Graversen +-
- . || : Email: kbg2001@internet.dk (no UU please)
- ... UI120:EJJEIHAHIABBIF^EDBECAFFIHDNBBECEEKRUNFEHAF01
-
-
-
-
-